package com.situ.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@TableName("t_manager")
@Schema(description = "管理员表")
@NoArgsConstructor
@AllArgsConstructor
public class TManager {

    @Schema(description = "管理员id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "盐")
    private String salt;

    @Schema(description = "手机")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "性别")
    private Integer gender;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "是否删除")
    private Integer isDelete;

    @Schema(description = "创建人")
    private String createdUser;

    @Schema(description = "创建时间")
    private Date createdTime;

    @Schema(description = "修改人")
    private String modifiedUser;

    @Schema(description = "修改时间")
    private Date modifiedTime;
}